package gqms_tool;

import utility.HibernateUtility;
import javax.persistence.Entity;


@Entity
public class LoginUser {

	private String name;
	private String password;
	
	
	public LoginUser()
	{
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}
	
		
	public String verify()
	{
		System.out.println("dynamic navigation");
		return "welcome";
	}
	
	public void registra(){
		HibernateUtility.salvaUtente(this);
	}
	
}
